package cn.qiyu5522.tk_ems.entity.vo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.time.LocalDateTime;

/**
 * @ProjectName: tk_ems
 * @Package: cn.qiyu5522.tk_ems.entity.vo
 * @ClassName: MajorVo
 * @Author: [Toneky]
 * @Date: 2023/2/5 13:11
 * @Version: V1.0
 **/
@Data
@ApiModel("专业VO对象")
public class MajorVO {


    @ApiModelProperty(value = "专业编号")
    private Long id;

    @ApiModelProperty(value = "专业名称")
    @NotBlank(message = "专业名称不能为空")
    @Length(min = 2,max = 12,message = "专业名字不合法")
    private String name;

    @NotNull(message = "院系编号不能为空")
    private Long departmentId;

    @ApiModelProperty(value = "院系编号")
    private String department;


    @ApiModelProperty(value = "创建时间")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "更新时间")
    private LocalDateTime updateTime;
}
